package demo1;

public class Derived extends Base{
    public  int a=2222;
    public int c=3;

    public  void funDerived(){
        System.out.println("Derived::funDerived()");
    }

    public void funBase(){
        System.out.println("Derived::func()");
    }
    public void funBase(int a){
        System.out.println("Derived::func()"+a);
    }

    public void method(){
        funDerived();
        funBase();
        funBase(10);

    }

    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();

    }










    public void test(){
        //System.out.println("1:"+this.a);
        System.out.println("1:"+super.a);
        System.out.println("2:"+a);
        System.out.println(b);
        System.out.println(c);

    }

    public static void main1(String[] args) {
        Derived derived = new Derived();
        derived.test();

    }
}
